package com.mayikt;

/**
 * @Author: maplefire
 * @Description: 真实数据
 * @Date: 2022/09/03 17:11
 */

public class RealData implements Data {

    private String requestResult;

    public RealData(String requestData) {
        System.out.println("正在进行数据请求，requestData:" + requestData);
        try {
            // 业务耗时操作
            Thread.sleep(3000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("结束请求，获取到结果");
        this.requestResult = requestData + ":maplefire";
    }

    public String getRequest() {
        return this.requestResult;
    }
}
